package io.gitee.twoke.generator.engine.impl.cmd;

import io.gitee.twoke.generator.engine.impl.interceptor.Command;
import io.gitee.twoke.generator.engine.impl.interceptor.CommandContext;

public class BindTemplateAndTemplateGroup implements Command<Void> {
    private String groupId;
    private String templateId;

    public BindTemplateAndTemplateGroup(String groupId, String templateId) {
        this.groupId = groupId;
        this.templateId = templateId;
    }

    @Override
    public Void execute(CommandContext commandContext) {
        commandContext.getTemplateGroupEntityManager().bind(groupId, templateId);
        return null;
    }
}
